import { Application } from 'egg';

export default (app: Application) => {
  const { controller, router } = app;

  router.get('/', controller.home.index);
  router.get('/admin', controller.admin.index);
  router.get('/newsList/:id', controller.admin.loginList);
  router.get('/news', controller.news.index);
  router.get('/newscontent', controller.news.content);
  router.get('/login', controller.login.index);
  router.post('/add', controller.login.add);

  router.get('/test', controller.home.xxx);
};
